<?php
namespace app\shop\route;
use think\facade\Route;
use app\shop\validate\store\Carfilm;
use app\shop\middleware\Auth;
Route::group("carfilm", function () {
    Route::get('list', 'store.Carfilm/list');
    Route::get('category', 'store.Carfilm/category');
    Route::get('orderList', 'store.Carfilm/orderList');
    Route::get('warrantyList', 'store.Carfilm/warrantyList');
    Route::post('add', 'store.Carfilm/add')->validate(Carfilm::class, 'add');
    Route::put('edit', 'store.Carfilm/edit')->validate(Carfilm::class, 'edit');
    Route::put('setStore', 'store.Carfilm/setStore')->validate(Carfilm::class, 'setStore');
    Route::delete(':id', 'store.Carfilm/del')->validate(Carfilm::class, 'del');
    Route::get(':id', 'store.Carfilm/info')->validate(Carfilm::class, 'info');
})->allowCrossDomain()->middleware([Auth::class]);